package com.itheima.a01mycollection;

import java.util.ArrayList;
import java.util.Collection;

public class A02_CollectionDemo1 {
    public static void main(String[] args) {
        Collection<String> coll=new ArrayList<>();
        coll.add("aaaa");
        coll.add("bbbb");

        coll.clear();

        coll.add("cccc");
        coll.add("dddd");

        coll.remove("dddd");

        System.out.println(coll.contains("cccc"));

        System.out.println(coll.isEmpty());

        System.out.println(coll.size());
    }
}
